#include "boost/multi_array.hpp"
#include <cassert>
#include <iostream>

int main () 
{
  // Create a 3D array that is 3 x 4 x 2
  typedef boost::multi_array<double, 3> array_type;
  typedef array_type::index index;

  int a,b,c;
  std::cin>>a>>b>>c;
  array_type A(boost::extents[a][b][c]);

  // Assign values to the elements
  int values = 0;
  for(index i = 0; i != a; ++i) 
    for(index j = 0; j != b; ++j)
      for(index k = 0; k != c; ++k)
        A[i][j][k] = values++;

  // Verify values
  int verify = 0;
  for(index i = 0; i != a; ++i) 
    for(index j = 0; j != b; ++j)
      for(index k = 0; k != c; ++k)
        assert(A[i][j][k] == verify++);

  return 0;
}

